@prefix-cls: ~"picture";

.@{prefix-cls} {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  &__form {
    width: calc(100% - 251px);
  }
  &__list {
    color: #656f79;
    height: 100%;
    width: calc(100% - 251px);
    overflow: auto;
    padding-top: 10px;
    &::-webkit-scrollbar {
      width: 5px;
    }
    &__content {
      margin-bottom: 20px;
      position: relative;
      display: flex;
      overflow: hidden;
      width: 100%;
    }
    &__row {
      flex: 1;
    }
    &__cell {
      margin-bottom: 8px;
      position: relative;
      cursor: pointer;
      > div {
        height: 100%;
        width: 100%;
        overflow: hidden;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
      }
      .overlay {
        opacity: 0;
        transition: all 0.25s;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        cursor: pointer;
        pointer-events: none;
        // 图片操作按钮
        &-controls {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          padding: 16px;
          background: linear-gradient(
            180deg,
            rgba(25, 27, 38, 0.56),
            rgba(25, 27, 38, 0)
          );
          display: flex;
          align-items: flex-start;
          justify-content: flex-start;
          gap: 8px;
          cursor: pointer;
          pointer-events: auto;
          .left-icon {
            flex: 1;
            display: inline-flex;
            gap: 8px;
          }
          .right-icon {
            display: inline-flex;
            gap: 8px;
          }
          .left-icon > div, .right-icon > div {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: 1px solid hsla(0, 0%, 100%, 0.4);
            background: hsla(0, 0%, 100%, 0.1);
            color: #fff;
            text-decoration: none;
            cursor: pointer;
            font-size: 20px;
            &.is-active {
              color: #fb6868;
            }
            &:hover {
              border: 1px solid #fff;
              color: #fb6868;
            }
          }
          .right-icon > div {
            font-size: 12px;
          }
        }
        // 图片底部标题展示
        &-bottom {
          position: absolute;
          display: flex;
          gap: 8px;
          left: 0;
          bottom: 0;
          width: 100%;
          padding: 16px;
          background: linear-gradient(
            180deg,
            rgba(25, 27, 38, 0),
            rgba(25, 27, 38, 0.56)
          );
          cursor: pointer;
          pointer-events: auto;
          color: hsla(0, 0%, 100%, 0.8);
        }
      }
      &:hover {
        .overlay {
          opacity: 1;
        }
      }
    }
    &__pagination {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 10px;
      height: 52px;
      line-height: 52px;
      flex: none;
    }
  }
  &__edit {
    width: 251px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    .n-card {
      height: 100%;
    }
    :deep(.n-card__content) {
      overflow: auto;
      padding: 8px;
      &::-webkit-scrollbar {
        width: 5px;
      }
    }
  }
}
